package com.cloud.domain;

import com.cloud.entity.SysUser;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户登录授权信息
 *
 * @author yzj
 */
@Data
@Schema(name = "用户授权信息", description = "授权管理")
public class LoginUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户唯一标识")
    private String token;

    @Schema(description = "登录时间")
    private Long loginTime;

    @Schema(description = "过期时间")
    private Long expireTime;

    @Schema(description = "登录IP地址")
    private String ipAddr;

    @Schema(description = "登录设备信息")
    private String loginDevice;

    @Schema(description = "登录用户昵称")
    private String nickName;

    @Schema(description = "系统编号")
    private String sysCode;

    @Schema(description = "登录用户对象")
    private SysUser user;

    @Schema(description = "部门以下范围(用于数据权限)")
    private String deptAfterScope;

    @Schema(description = "用户/关联项目对象")
    private UserProject userProject;

}
